<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="UTF-8"/>
<title>运营平台</title>
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<meta name="renderer" content="webkit">
<!--<meta http-equiv="X-UA-Compatible" content="IE=edge">-->
<link type="text/css" rel="stylesheet" href="<?php echo get_style_cdnurl();?>paimai/yunying/css/common.css?v=20170207" />
<link type="text/css" rel="stylesheet" href="<?php echo get_style_cdnurl();?>paimai/yunying/css/table.css?v=20170117" />
<link type="text/css" rel="stylesheet" href="<?php echo get_style_cdnurl();?>paimai/yunying/css/jquery-ui.css" />
<script src="<?php echo get_style_cdnurl();?>paimai/yunying/js/jquery-1.11.1.js" type="text/javascript"></script>
<script src="<?php echo get_style_cdnurl();?>paimai/yunying/js/jquery-ui.min.js" type="text/javascript"></script>
 <script src="<?php echo get_style_cdnurl();?>paimai/yunying/js/yunIndex.js" type="text/javascript"></script>
<script src="<?php echo get_style_cdnurl();?>paimai/yunying/js/jquery-ym-datePlugin-0.1.js" type="text/javascript"></script>
<script src="<?php echo get_style_cdnurl();?>paimai/yunying/js/global.js" type="text/javascript"></script>
<script src="<?php echo get_style_cdnurl();?>paimai/cheshan/js/common.js" type="text/javascript"></script>
<script type="text/javascript" src="<?php echo get_style_cdnurl();?>paimai/yunying/js/jquery.placeholder.min.js"></script>
<script type="text/javascript">
 $(function(){
     $("input").placeholder();
     if (navigator.userAgent.indexOf("Safari") > -1) {
       $("input").css("lineHeight","normal !important");
     };
});
</script>

<link type="text/css" rel="stylesheet" href="<?php echo get_style_cdnurl();?>paimai/yunying/plugin/select2/select2.css" />
<style type="text/css">
    .custom_search{display: block;margin-top: 10px;width:100%;height:25px;}
    #budget,#car_type,#comefrom {
        -moz-appearance: none;
        background: rgba(0, 0, 0, 0) url("http://img1.isou365.cn/paimai/yunying/images/sanjiao.jpg") no-repeat scroll 130px 5px;
        border: 1px solid #d7d7d7;color: #666;float: left; height: 25px;line-height: 25px;margin-left:10px;text-align: center;width: 150px;}
    .custom_01,.custom_02{display: block;margin-top: 10px;}
    .custom_02{padding-left: 7px;}
</style>
</head>
<body>
<div class="header">
<div class="headerCo">
<span>你好,<?php echo ($user_info["real_name"]); ?><a href="<?php echo (WEB_URL); ?>Emp/logout">退出</a></span>
<h1><img src="<?php echo get_style_cdnurl();?>paimai/yunying/images/yun_logo.jpg"></h1>
</div>
</div>
<div class="mian">
    <div class="mianL">
    <dl>
        <dd>
            <a id="menu_sy" href="/Index/index" class="shouye">首页</a>
        </dd>
        <?php foreach ($tree_menu as $key => $value): ?>
          <dd>
            <span id="menu_<?php echo ($value['first_char']); ?>" ><img src="<?php echo get_style_cdnurl();?>paimai/yunying/images/yun_jia.jpg"><?php echo ($value['name']); ?></span>
            <ul style="display: none;">
                <?php if (!empty($value['children'])): ?>
                    <?php foreach ($value['children'] as $k => $v): ?>
                        <li><a id='menu_<?php echo ($v["first_char"]); ?>' href="<?php echo ($v['url']); ?>"><?php echo ($v['name']); ?></a></li>
                    <?php endforeach ?>
                <?php endif ?>
            </ul>
        <?php endforeach ?>
    </dl>
</div>

<?php $menu = 'cyxs.dzdj'; ?>
<?php $menu=json_encode(explode('.', $menu)); ?>
<script>
    $(function () {
        var cur_menu = '<?php echo ($menu); ?>', cur_menu = eval('[' + cur_menu + ']'), cur_menu = cur_menu[0];
        if (cur_menu == "sy") {
            $("#menu_sy").removeClass('shouye').addClass('current');
        }
        $('#menu_' + cur_menu[0]).click();
        $('#menu_' + cur_menu[0]).find("img").attr("src", "http://img1.isou365.cn/paimai/yunying/images/yun_jie.jpg");
        $(".mianL").css("height", $(document).height() - 95);
        $('#menu_' + cur_menu[1]).addClass('current');
    });
</script>
    <div class="mianR">
        <div class="yuyue">
            <ul>
                <li onclick="window.location.href = '/Custom/index'" class="yuCurrent">待定制</li>
<!--                <li onclick="window.location.href = '/Custom/track'">跟踪中</li>
                <li onclick="window.location.href = '/Custom/success'">登记成功</li>
                <li onclick="window.location.href = '/Custom/fail'">登记失败</li>-->
            </ul>
        </div>
        <div class="yuSuo clearfix">
            <form id="searchFrom">
                <div class="custom_01 clearfix">
                    <input type="text" id="id" name="id" placeholder="请输入定制ID" value="" class="suoDian" />
                    <input type="text" id="phone" name="phone" placeholder="请输入手机号" value="" class="suoDian" />
                    <select name="budget"  id="budget">
                        <option value="">全部预算</option>
                        <?php if(is_array($budget)): $kd = 0; $__LIST__ = $budget;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$bd): $mod = ($kd % 2 );++$kd;?><option value="<?php echo ($kd); ?>"><?php echo ($bd); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
                    </select>
                    <select name="car_type"  id="car_type">
                        <option value="">全部车辆类型</option>
                         <?php if(is_array($car_type_list)): $i = 0; $__LIST__ = $car_type_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$ct): $mod = ($i % 2 );++$i;?><option value="<?php echo ($ct["key"]); ?>"><?php echo ($ct["value"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
                    </select>
                    <select name="comefrom"  id="comefrom">
                        <option value="">全部渠道</option>
                        <option value="1">桌面官网</option>
                        <option value="2">移动官网</option>
                        <option value="3">移动客户端</option>
                        <option value="4">其它</option>
                    </select>
                </div>
                <div class="custom_02">
                    <input type="text" id="start_time" name="start_time" value="" readonly placeholder="开始时间" /><em></em>
                    <input type="text" id="end_time" name="end_time" value="" readonly placeholder="结束时间" style="margin-right: 10px;"/> 
                </div>
            </form>
            <input type="button" onclick="search();" id="search" value="搜索" class="suoSou">
        </div>
        <div class="yuList">
            <div class="listBox" id="listBox"></div>
        </div>
    </div>
    <script type="text/javascript">
        $("#start_time").ymdateplugin({
            changeMonth: true,
            changeYear: true
        });
        $("#end_time").ymdateplugin({
            changeMonth: true,
            changeYear: true
        });
        get_list(1);
        function get_list(status) {
            var url = mkUrl();
            $.get("/Custom/custom_list?status="+status, url, function (data) {
                $("#listBox").html(data);
            }, "html");
        }
        function get_page(p) {
            var url = mkUrl();
            url += "&p=" + p;
            $.get("/Custom/custom_list?status=1", encodeURI(url), function (data) {
                $("#listBox").html(data);
            }, "html");
        }
        function search() {
            var url = mkUrl();
            $.get("/Custom/custom_list?status=1", encodeURI(url), function (data) {
                $("#listBox").html(data);
            }, "html");
        }
        function mkUrl() {
            var url = "";
            var id = $("#id").val();
            var phone = $("#phone").val();
            var budget = $("#budget").val();
            var car_type = $("#car_type").val();
            var comefrom = $("#comefrom").val();
            var start_time = $("#start_time").val();
            var end_time = $("#end_time").val();
            if (id) {
                url += '&id=' + id;
            }
            if (phone) {
                url += '&phone=' + phone;
            }
            if (budget) {
                url += '&budget=' + budget;
            }
            if (car_type) {
                url += '&car_type=' + car_type;
            }
            if (comefrom) {
                url += '&comfrom=' + comefrom;
            }
            if (start_time) {
                url += '&start_time=' + start_time;
            }
            if (end_time) {
                url += '&end_time=' + end_time;
            }
            return url;
        }
    </script>
    <div class="yunBei"></div>
<div class="loading"></div>
</body>
</html>